package com.example.ccj.b.c.dialog;

import android.content.Context;
import android.view.View;

import androidx.annotation.NonNull;

import com.example.ccj.R;


public class TipDialog extends DialogBase{
    String value;
    DialogButtonOnClickListener clickListener;
    public TipDialog(@NonNull Context context, String value) {
        super(context);
        this.value = value;
    }

    public TipDialog(@NonNull Context context, String value,DialogButtonOnClickListener clickListener) {
        super(context);
        this.value = value;
        this.clickListener = clickListener;
    }

    @Override
    public void onInit() {
        setTitleCenterText("提示");
        getmTvCenterText().setTextSize(15);
        setTitleLeftIcon(R.mipmap.def_dialog_ok);
        setButtonSureText("确定").setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                clickListener.dialogSure();
            }
        });
        setCenterText("提示："+value);
    }



}
